namespace MVC作业.Models;


public static class Stus
{

    public static List<Students> StudentList { get; set; } = GetStudents(10);

    private static List<Students> GetStudents(int n)
    {
        n = n < 3 ? 3 : n;
        var list = new List<Students>();
        for (var i = 1; i <= n; i++)
        {
            var tmp = new Students(i, "何童鞋" + i.ToString(), "1995-06-11", "m");

            list.Add(tmp);
        }

        return list;
    }
}